package com.alibaba.travel.search.constant;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: where
 * @Date: 2023/03/09/16:15
 * @Description:
 */
public class EsConstant {
    public static final String ARTICLE_INDEX_NAME = "article";
    public static final String SCENIC_INDEX_NAME = "scenic";
    public static final String ARTICLE_MAPPING = "{\n" +
            "  \"mappings\" : {\n" +
            "    \"properties\" : {\n" +
            "      \"id\": {\n" +
            "        \"type\": \"Long\"\n" +
            "      },\n" +
            "      \"title\" : {\n" +
            "        \"type\" : \"text\",\n" +
            "        \"analyzer\" : \"ik_max_word\"\n" +
            "      },\n" +
            "      \"content\" : {\n" +
            "        \"type\": \"text\",\n" +
            "        \"analyzer\": \"ik_max_word\"\n" +
            "      },\n" +
            "      \"updateTime\": {\n" +
            "        \"type\": \"date\",\n" +
            "        \"format\": \"yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis\"\n" +
            "      },\n" +
            "      \"createTime\": {\n" +
            "        \"type\": \"date\",\n" +
            "        \"format\": \"yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis\"\n" +
            "      },\n" +
            "      \"userId\": {\n" +
            "        \"type\": \"Long\"\n" +
            "      },\n" +
            "      \"userName\": {\n" +
            "        \"type\": \"keyword\"\n" +
            "      },\n" +
            "      \"avatar\": {\n" +
            "        \"type\": \"keyword\",\n" +
            "        \"index\" : \"false\"\n" +
            "      },\n" +
            "      \"contentId\": {\n" +
            "        \"type\": \"Long\"\n" +
            "      },\n" +
            "      \"likesNumber\": {\n" +
            "        \"type\": \"Long\"\n" +
            "      },\n" +
            "      \"coverImage\": {\n" +
            "        \"type\": \"keyword\",\n" +
            "        \"index\": \"false\"\n" +
            "      },\n" +
            "      \"showStatus\": {\n" +
            "        \"type\": \"keyword\"\n" +
            "      },\n" +
            "      \"commentNumber\": {\n" +
            "        \"type\": \"Long\",\n" +
            "        \"index\": \"false\"\n" +
            "      }\n" +
            "    }\n" +
            "  }\n" +
            "}";


    public static final String SCENIC_MAPPING = "{\n" +
            "  \"mappings\": {\n" +
            "    \"properties\": {\n" +
            "      \"id\": {\n" +
            "        \"type\": \"Long\"\n" +
            "      },\n" +
            "      \"longitude\" : {\n" +
            "        \"type\" : \"Double\"\n" +
            "      },\n" +
            "      \"latitude\": {\n" +
            "        \"type\": \"Double\"\n" +
            "      },\n" +
            "      \"price\": {\n" +
            "        \"type\": \"Double\"\n" +
            "      },\n" +
            "      \"introduce\": {\n" +
            "        \"type\": \"text\",\n" +
            "        \"analyzer\": \"ik_max_word\"\n" +
            "      },\n" +
            "      \"content\": {\n" +
            "        \"type\": \"text\",\n" +
            "        \"analyzer\": \"ik_max_word\"\n" +
            "      },\n" +
            "      \"updateTime\": {\n" +
            "        \"type\": \"date\",\n" +
            "        \"format\": \"yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis\"\n" +
            "      },\n" +
            "      \"createTime\": {\n" +
            "        \"type\": \"date\",\n" +
            "        \"format\": \"yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis\"\n" +
            "      },\n" +
            "      \"name\": {\n" +
            "        \"type\": \"keyword\"\n" +
            "      },\n" +
            "      \"images\": {\n" +
            "        \"type\": \"keyword\",\n" +
            "        \"index\": \"false\"\n" +
            "      },\n" +
            "      \"contentId\": {\n" +
            "        \"type\": \"Long\"\n" +
            "      },\n" +
            "      \"likesNumber\": {\n" +
            "        \"type\": \"Long\"\n" +
            "      },\n" +
            "      \"coverImage\": {\n" +
            "        \"type\": \"keyword\",\n" +
            "        \"index\": \"false\"\n" +
            "      },\n" +
            "      \"commentNumber\": {\n" +
            "        \"type\": \"Long\",\n" +
            "        \"index\": \"false\"\n" +
            "      }\n" +
            "    }\n" +
            "  }\n" +
            "}";


}
